#include<string>
#include"Lexer.h"
using namespace std;
int main()
{
    string str;
    while (1)
    {
        cout<<">>>";
        getline(cin,str);
        Lexer lexer = Lexer(str);
        lexer.make_tokens();
        vector<Token> tokens = lexer.get_tokens();
        for(auto tok:tokens)
        {
            cout<<tok.type;
            if(tok.value!="")
            {
                cout<<":";
                cout<<tok.value;
            }
            cout<<" ";
        }
        cout<<endl;
    }
    return 0;
}
